home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm3_1_2
- Caption = "Semester Grade"
- ClientHeight = 2532
- ClientLeft = 60
- ClientTop = 348
- ClientWidth = 4704
- LinkTopic = "Form1"
- ScaleHeight = 2532
- ScaleWidth = 4704
- StartUpPosition = 3 'Windows Default
- Begin VB.PictureBox picGrade
- Height = 495
- Left = 120
- ScaleHeight = 444
- ScaleWidth = 4404
- TabIndex = 11
- Top = 1800
- Width = 4452
- End
- Begin VB.CommandButton cmdQuit
- Caption = "&Quit"
- Height = 495
- Left = 3480
- TabIndex = 10
- Top = 1200
- Width = 975
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "&Display Grade"
- Height = 495
- Left = 1920
- TabIndex = 9
- Top = 1200
- Width = 1335
- End
- Begin VB.TextBox txtFinal
- Height = 285
- Left = 4080
- TabIndex = 6
- Top = 720
- Width = 375
- End
- Begin VB.TextBox txtMidterm
- Height = 285
- Left = 2760
- TabIndex = 5
- Top = 720
- Width = 492
- End
- Begin VB.TextBox txtSSN
- Height = 285
- Left = 600
- TabIndex = 3
- Top = 720
- Width = 1212
- End
- Begin VB.TextBox txtName
- Height = 285
- Left = 720
- TabIndex = 1
- Top = 120
- Width = 3612
- End
- Begin VB.CommandButton cmdEnter
- Caption = "&Enter Information"
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 1200
- Width = 1455
- End
- Begin VB.Label lblFinal
- Caption = "Final"
- Height = 252
- Left = 3480
- TabIndex = 8
- Top = 720
- Width = 372
- End
- Begin VB.Label lblMidterm
- Caption = "Midterm"
- Height = 252
- Left = 2040
- TabIndex = 7
- Top = 720
- Width = 612
- End
- Begin VB.Label lblSSN
- Caption = "SSN"
- Height = 252
- Left = 120
- TabIndex = 4
- Top = 720
- Width = 492
- End
- Begin VB.Label lblName
- Caption = "Name"
- Height = 255
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 495
- End
- Attribute VB_Name = "frm3_1_2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private pupil As CPFStudent
- Private Sub cmdEnter_Click()
- Set pupil = New CPFStudent
- 'Read the Values stored in the Text boxes
- pupil.Name = txtName
- pupil.SocSecNum = txtSSN
- pupil.midGrade = Val(txtMidterm)
- pupil.finGrade = Val(txtFinal)
- 'Clear Text Boxes
- txtName.Text = ""
- txtSSN.Text = ""
- txtMidterm.Text = ""
- txtFinal.Text = ""
- picGrade.Cls
- picGrade.Print "Student recorded."
- End Sub
- Private Sub cmdDisplay_Click()
- picGrade.Cls
- picGrade.Print pupil.Name; Tab(28); pupil.SocSecNum(); _
- Tab(48); pupil.SemGrade
- End Sub
- Private Sub cmdQuit_Click()
- End
- End Sub
-